import type {
    T_Xme_NetworkHostConfig_Unresolved,
} from '@xinmier/lei-xing--tong-yong'

const {
    // protocol,
    hostname: nameOrIp,
} = window.location

export const apiServerDefault: T_Xme_NetworkHostConfig_Unresolved<'http:'> = {
    protocol: 'http:',
    nameOrIp: nameOrIp,
    port: 3333,
}

export const webSocketServerDefault: T_Xme_NetworkHostConfig_Unresolved<'ws:'> = {
    protocol: 'ws:',
    nameOrIp: nameOrIp,
    port: 3333,
}
export const mqttServerDefault: T_Xme_NetworkHostConfig_Unresolved<'ws:'> = {
    protocol: 'ws:',
    nameOrIp: nameOrIp,
    port: 8083,
}